// 可索引签名
interface Product {
  name: string;
  price: number;
  account: number;
  [x: string]: any;
}

let p: Product = {
  name: "abc",
  price: 100,
  account: 100,
  // 底层key值内部获取时通过字符串形式获取
  100: "ok",
  [Symbol("stockno")]: 1000,
};

export {};
